import React, {useEffect} from 'react'
import errorIcon from '@/images/error/error.png'
import {Image} from "antd";
import './index.css'
import {useHistory} from "react-router";
import {getQueryString} from "@/utils/Request";


const Error = () => {

    const history = useHistory()

    console.log(getQueryString(history.location.search, 'error'))
    return <>
        <div className={'error-wrap'}>
            <img src={errorIcon} className='error-img'/>
            <div className='error-text'>错误代码:{decodeURI(getQueryString(history.location.search, 'error'))}</div>
        </div>
    </>
}

export default Error